﻿package src.uipackage.ui.events {
	
	import flash.events.Event;

	/**
	* Event dispatched by OBO_ComboBox.
	* @author Devon O.
	*/
	public class ComboBoxEvent extends Event {
		
		public static const OPTION_SELECTED:String = "onOptionSelected";
		
		private var _data:*;
		
		public function ComboBoxEvent(type:String, data:*):void {
			super(type);
			_data = data;
		}
		
		/**
		 * Returns the data passed to the constructor method.
		 */
		public function get data():* { return _data; }
		
		public override function clone():Event {
			return new ComboBoxEvent(OPTION_SELECTED, _data);
		}
	}
}